package com.market.sys.util;/*
 *文件名: EmptyUtil
 *创建时间:2024/1/11 8:21
 *version: 1.0
 *since: 1.0
 */

import static com.market.sys.util.Constants.NULL_STRING;
import static com.market.sys.util.Constants.UNDEFINED;

/**
 * 空判断工具类
 *
 * @author ln
 */
public class EmptyUtil {

    public static boolean isStringEmpty(String str) {

        return str == null || "".equals(str.trim()) ||
                UNDEFINED.equals(str.trim()) ||
                NULL_STRING.equals(str.trim());
    }


    public static boolean isNumberEmpty(Integer num) {
        return num == null || num == 0;
    }

}
